package day03;

import java.util.Scanner;

public class Practice {


    public static void main(String[] args) {





        /*
        System.out.println(10%4);//余2
        System.out.println(23%4);//余3
        System.out.println(27%9);//余0

        //++
        int a = 10; int b =10;
        int c = a++;
        int d = ++b;
        System.out.println(a);//11
        System.out.println(b);//11
        System.out.println(c);//10
        System.out.println(d);//11
        //--
        int A =a--;
        int B =--b;
        System.out.println(a);//10
        System.out.println(b);//10
        System.out.println(A);//11
        System.out.println(B);//10
        //运算符
        int e = 10 ,f = 20,g =10;
        boolean e1 = e>f;
        System.out.println(e1);//false
        System.out.println(e>=g);//true
        System.out.println(f>g);//true
        System.out.println(e<=f);//true
        System.out.println(e==g);//true
        System.out.println(e!=g);//false
        System.out.println(e+g>f);//false
        System.out.println(++e>10);//true
        System.out.println(e++>10);//true
        System.out.println(a+c>15);//true
        System.out.println(b%2>2);//false

        //演示
        int aa=50,bb=100,cc=50;
        boolean b1 = bb>=aa  && bb<cc;
        System.out.println(b1);//false/false
        System.out.println(aa<bb && aa>cc);//true/false
        System.out.println(aa>=bb&& cc>bb);//false/false
        System.out.println(bb!=cc && aa>=cc);//true/true

        System.out.println(bb>=aa || bb<cc);//true/false
        System.out.println(bb<=cc || aa<bb);//false/true
        System.out.println(bb!=cc || aa<bb);//true/true
        System.out.println(aa==bb|| cc>aa);//false/false


         */


        int year = 751;
        if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
            System.out.println(year + "是闰年");
        }else
            System.out.println(year+"是平年");


        int score = 55;
        if (score < 0 || score > 100) {
            System.out.println("成绩不合法为" + score);
        } else if (score >= 90) {
            System.out.println("成绩极佳为" + score);
        } else if (score >= 80) {
            System.out.println("成绩优秀为" + score);
        } else if (score >= 60) {
            System.out.println("成绩良好为" + score);
        } else if (score < 60) {
            System.out.println("不及格为" + score);
        }
    }
}











